Rnoc\Retainful\Api\AbandonedCart\RestApi D

Total Complexity 129
Dependencies 9
Dependents 2
Total lines 746
Lines of code 410
Logical lines of code 238
Comment lines 230
Methods 46
Properties 23

Methods 46

Method Rating Maintainability Complexity Lines of code
getClientIp()
A
56 8 20
encryptData()
S
54 6 20
changeOrderStatus()
S
58 5 16
getLineItemTotal()
S
62 6 10
initStorage()
S
60 4 15
setCartToken()
S
59 4 14
getCustomerCheckoutDetails()
S
60 4 13
markOrderAsRecovered()
S
60 4 12
getUserAcceptLanguage()
S
62 4 11
generateCartHash()
S
62 4 11
getUserAgent()
S
64 4 10
setCartCreatedDate()
S
65 4 9
__construct()
S
70 4 6
setCustomerBillingDetails()
S
64 4 10
setSessionShippingDetails()
S
64 4 10
isOrderHasValidOrderStatus()
S
60 3 13
formatToIso8601()
S
61 3 12
retrieveCartToken()
S
62 3 11
isBuyerAcceptsMarketing()
S
64 3 11
generateCartToken()
S
56 2 17
isPendingRecovery()
S
68 3 7
userCartCreatedAt()
S
66 3 8
canTrackAbandonedCarts()
S
70 3 6
convertToCurrency()
S
71 3 6
getRetainfulApiUrl()
S
68 3 6
considerFailedAsAbandoned()
S
74 2 4
syncCart()
S
65 2 9
refreshFragmentsOnPageLoad()
S
74 2 4
decryptData()
S
62 2 10
considerOnHoldAsAbandoned()
S
74 2 4
isOrderInPendingRecovery()
S
67 2 7
considerCancelledAsAbandoned()
S
74 2 4
isOrderRecovered()
S
67 2 7
retrieveUserIp()
S
67 2 8
getAddressMapFields()
S
60 1 15
getCartToken()
S
67 2 8
getClientDetails()
S
68 1 7
formatDecimalPrice()
S
73 1 5
removeSessionBillingDetails()
S
81 1 3
getCurrentCurrencyCode()
S
75 1 4
formatDecimalPriceRemoveTrailingZeros()
S
72 1 5
removeSessionShippingDetails()
S
81 1 3
formatUserIP()
S
74 1 4
hashTheData()
S
75 1 4
getRecoveryLink()
S
67 1 7
isValidOrderStatusToResetCartToken()
S
75 1 4